export function isValidKey (
  key: string | number | symbol,
  object: object
): key is keyof typeof object {
  return key in object;
}

export default isValidKey;
